<template>
  
    <div class="box">
      <h2>{{ msg }}</h2>
      <div>doublecount:{{ store }}</div>
    </div>
    </template>
    
    
    <script setup lang="ts">
      import { ref } from 'vue'

      defineProps<{ msg: string }>()//和vue2的prop一样

      import {useTestStore} from '@/store/test'
      const store = useTestStore();


    </script>
    
    
    <style lang="less" scoped>
      .box{
        border: 1px solid cyan;
      }
      .btn{
        border:1px solid skyblue;
      }
    </style>
    